
			<div class="container">  
			</div>
			<div class="container main">
				<div id="user">
					<h3>Users</h3>
                    <div class="row-fluid">
						<div class="span10">
							<ul class="horizontal">
								<li><a href="<?php echo site_url('auth/register');?>" class="btn">Add User</a></li>
							</ul>
						</div>
					</div>
					<?php
                    if(empty($hasil)){
                        echo "<table class='table table-striped'>
                            <thead>
                                <tr>
                                    <td>Username</td>
                                    <td>Status</td>
                                    <td>Status</td>
                                    <td>Banned</td>
                                    <td>Action</td>
                                </tr>
                            </thead>
                        </table>";
                    }else{
                    ?>
                        <table class='table table-striped'>
                            <thead>
                                <tr>
                                	<td width="1" style="text-align: center;"><input name="checkbox[]" id="checkbox[]" type="checkbox" value="$row -> product_id" /></td>
                                    <td>Username</td>
                                    <td>Email</td>
                                    <td>Status</td>
                                    <td>Banned</td>
                                    <td>Action</td>
                                </tr>
                            </thead>
                            <?php foreach ($hasil as $row): ?>
                                <tr>
                                	<td width="1" style="text-align: center;"><input name="checkbox[]" id="checkbox[]" type="checkbox" value="$row -> product_id" /></td>
                                    <td><?php echo $row -> username ?></td>
                                    <td><?php echo $row -> email ?></td>
                                    <td><?php if ($row->activated == 1) { ?>
                                          Active
                                          <?php } else { ?>
                                          Non-Active
                                          <?php } ?></td>
                                    <td><?php if ($row->banned == 1) { ?>
                                          Yes
                                          <?php } else { ?>
                                          No
                                          <?php } ?></td>
                                    <td><?php echo anchor('auth/edit_user/'.$row->id, 'Edit') . ' | ' . 
                                    anchor('auth/delete_user/'.$row->id, 'Delete'); ?></td>         
                                </tr>
                            <?php endforeach; ?> 
                        </table>
                    <?php
                    }
                    ?>
				</div>
			</div>
		</div>
		
		